﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace TCS.Web.MembersHome
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
        {
            bool Authenticated = false;
            Authenticated = SiteLevelCustomAuthenticationMethod(Login1.UserName, Login1.Password);
            e.Authenticated = Authenticated;
            if (Authenticated == true)
            {
                //Session["BangShangLogin_model"] = new TCS.BLL.MemberInfo().GetMemberLogin(Login1.UserName);
                Response.Redirect("index.aspx");
            }
            
        }
        private bool SiteLevelCustomAuthenticationMethod(string strUserName, string strPassword)
        {
            bool boolReturnValue = false;
            //string userName = LTP.Common.PageValidate.InputText(strUserName.Trim(), 30);
            //string Password = LTP.Common.PageValidate.InputText(strPassword.Trim(), 30);
            return boolReturnValue; // new TCS.BLL.MemberInfo().Exists(userName, Password);
            
        }
    }
}
